<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$title}</title>
<!-- Import google fonts - Heading first/ text second -->
<!--[if lt IE 9]>
<link href="http://fonts.useso.com/css?family=Open+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Open+Sans:700" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Droid+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Droid+Sans:700" rel="stylesheet" type="text/css" />
<![endif]-->
<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="__PUBLIC__/admin/assets/ico/favicon.ico" type="image/x-icon" />
<!-- Css files -->
<link href="__PUBLIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/jquery.mmenu.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/font-awesome.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/style.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/add-ons.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
			<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	    <![endif]-->
</head>
<SCRIPT LANGUAGE=javascript>   
function p_del() {   
var msg = "确定删除吗?";   
if (confirm(msg)==true){   
return true;   
}else{   
return false;   
}   
}   
</SCRIPT>
<body>
<!-- start: Header --> 
<include file="./head" /> 
<!-- end: Header -->
<div class="container-fluid content">
<div class="row">
  <!-- start: Main Menu --> 
  <include file="./slide" /> 
  <!-- end: Main Menu --> 
  <!-- start: Content -->
  <div class="main sidebar-minified"> 
    <!--div class="row">
      <div class="col-lg-12">
        <h3 class="page-header"><i class="fa fa-table"></i>{$title}</h3>
      </div>
    </div-->
 
<div class="row">
      <div class="col-lg-8">
        <div class="panel panel-default">
        <div class="panel-heading">
          <h2><i class="fa fa-indent red"></i><strong>广告修改</strong></h2>
        </div>
        <div class="panel-body">
        <form action="{:U("Ad/updates")}" method="post" class="form-horizontal ">
          <input type="hidden" value="{$ad['id']}" name="id">
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-small">广告标记</label>
            <div class="col-sm-6">
              <input type="text" id="input-small"  value="{$ad['title']}" name="title" class="form-control input-sm" placeholder="广告标记">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">广告类型</label>
            <div class="col-sm-6">
                <select id="cid" name="type" class="form-control" size="1">
                  <option value="1" <?php if($ad['type']==1){?> selected <?php }?> >文字广告</option>
                  <option value="2" <?php if($ad['type']==2){?> selected <?php }?> >图片广告</option>
                  <option value="3" <?php if($ad['type']==3){?> selected <?php }?> >JS广告</option>
                  </select>
            </div>
          </div>
         
         <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">广告位置</label>
            <div class="col-sm-6">
                <select id="cid" name="pos" class="form-control" size="1">
                  <option value="1" <?php if($ad['pos']==1){?> selected <?php }?> >顶部</option>
                  <option value="2" <?php if($ad['pos']==2){?> selected <?php }?> >底部</option>
                  <option value="3" <?php if($ad['pos']==3){?> selected <?php }?> >最底部</option>
                  </select>
            </div>
          </div>


          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">广告文字</label>
            <div class="col-sm-6">
              <input type="text" id="input-normal" name="text" class="form-control" placeholder="" value="{$ad['text']}">
            </div>
          </div>
         
         <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">广告图片</label>
            <div class="col-sm-6">
              <input type="text" id="input-normal" name="pic" class="form-control" placeholder="" value="{$ad['pic']}">
            </div>
          </div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">广告链接</label>
            <div class="col-sm-6">
              <input type="text" id="input-normal" name="url" class="form-control" placeholder="" value="{$ad['url']}">
            </div>
          </div>

        <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">广告JS代码</label>
            <div class="col-sm-6">
              <input type="text" id="input-normal" name="js" class="form-control" placeholder="" value="{$ad['js']}">
            </div>
          </div>
    
 



 
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-large">排序</label>
            <div class="col-sm-6">
              <input type="text" id="input-large" name="sort" class="form-control" placeholder="分类排序" value="{$ad['sort']}">
            </div>
          </div>
          </div>
          <div class="panel-footer">
          <div class="row">
           <div class="col-sm-2"></div>
           <div class="col-sm-6"> <button type="submit" class="btn btn-success active"><i class="fa fa-dot-circle-o"></i>修改</button></div>
           </div>
          </div>
          </div>
        </form>
      </div>
    </div>
    
    
    
    
  </div>
</div>

 

<include file="./foot" />
</body>
</html>